home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 109
/
Vol 109.iso
/
games
/
chick000.swf
/
scripts
/
frame_3
/
PlaceObject2_108_51
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Wrap
Text File
|
2008-11-12
|
6KB
|
251 lines
onClipEvent(enterFrame){
xx = _root.eggbox.chickentarget.hitTest(_root.egg1.hitted);
if(xx == false)
{
}
if(xx == true)
{
setProperty("_root.eggbox.chickentarget", _X, _root.chickenX);
with(_root.egg1)
{
gotoAndStop(1);
}
if(_root.chickenNumber == 0)
{
setProperty("_root.chicken0", _X, _root.chickenX);
}
if(_root.chickenNumber == 1)
{
setProperty("_root.chicken1", _X, _root.chickenX);
}
if(_root.chickenNumber == 2)
{
setProperty("_root.chicken2", _X, _root.chickenX);
}
if(_root.chickenNumber == 3)
{
setProperty("_root.chicken3", _X, _root.chickenX);
}
if(_root.chickenNumber == 4)
{
setProperty("_root.chicken4", _X, _root.chickenX);
}
if(_root.chickenNumber == 5)
{
setProperty("_root.chicken5", _X, _root.chickenX);
}
eggpos = _root.egg1._x;
if(_root.allchickensgone == 0)
{
trace(_root.tempchickenAngle);
if(_root.tempchickenAngle != 0)
{
_root.chickenAngle = eggpos - _root.tempchickenAngle;
}
_root.tempchickenAngle = eggpos;
with(_root.chicken0)
{
nextFrame();
play();
}
with(_root.basket)
{
nextFrame();
}
with(_root.green)
{
nextFrame();
}
with(_root.sky)
{
nextFrame();
}
if(_root.chickenNumber > 0)
{
with(_root.chicken1)
{
nextFrame();
play();
}
with(_root.basket)
{
nextFrame();
}
with(_root.green)
{
nextFrame();
}
with(_root.sky)
{
nextFrame();
}
}
if(_root.chickenNumber > 1)
{
with(_root.chicken2)
{
nextFrame();
play();
}
with(_root.basket)
{
nextFrame();
}
with(_root.green)
{
nextFrame();
}
with(_root.sky)
{
nextFrame();
}
}
if(_root.chickenNumber > 2)
{
with(_root.chicken3)
{
nextFrame();
play();
}
with(_root.basket)
{
nextFrame();
}
with(_root.green)
{
nextFrame();
}
with(_root.sky)
{
nextFrame();
}
with(_root.baloon)
{
nextFrame();
}
}
if(_root.chickenNumber > 3)
{
with(_root.chicken4)
{
nextFrame();
play();
}
with(_root.basket)
{
nextFrame();
}
with(_root.green)
{
nextFrame();
}
with(_root.sky)
{
nextFrame();
}
with(_root.baloon)
{
nextFrame();
}
}
if(_root.chickenNumber > 4)
{
with(_root.chicken5)
{
nextFrame();
play();
}
with(_root.basket)
{
nextFrame();
}
with(_root.green)
{
nextFrame();
}
with(_root.sky)
{
nextFrame();
}
with(_root.baloon)
{
nextFrame();
}
}
}
if(_root.allchickensgone == 1)
{
if(_root.green_currentframe < 155)
{
with(_root.green)
{
nextFrame();
}
}
_root.chickenAngle = eggpos - _root.tempchickenAngle;
_root.tempchickenAngle = eggpos;
with(_root.sky)
{
nextFrame();
}
with(_root.baloon)
{
nextFrame();
}
with(_root.bonus)
{
nextFrame();
}
with(_root.eggtimer)
{
nextFrame();
}
with(_root.chicken0)
{
nextFrame();
}
with(_root.chicken1)
{
nextFrame();
}
with(_root.chicken2)
{
nextFrame();
}
with(_root.chicken3)
{
nextFrame();
}
with(_root.chicken4)
{
nextFrame();
}
with(_root.chicken5)
{
nextFrame();
}
}
if(_root.chickenNumber < 5)
{
_root.chickenNumber == _root.chickenNumber++;
}
else
{
_root.chickenNumber = 0;
_root.allchickensgone = 1;
}
_root.score == _root.score++;
removeMovieClip(_root.egg1);
}
if(_root.clock < 20)
{
if(_root.bee._currentframe < 600)
{
with(_root.bee)
{
gotoAndPlay(599);
}
}
}
}